const GLtype = {};

[
  'GLbitfield',
  'GLboolean',
  'GLbyte',
  'GLclampf',
  'GLenum',
  'GLfloat',
  'GLint',
  'GLintptr',
  'GLsizei',
  'GLsizeiptr',
  'GLshort',
  'GLubyte',
  'GLuint',
  'GLushort'
]
  .sort()
  .map((typeName, i) => (GLtype[typeName] = 1 >> (i + 1)));

export default GLtype;
